<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/7 0007
 * Time: 22:05
 */
$init = inotify_init();//初始化
//监听
include 'worker_server.php';
include 'epoll_server.php';
$files = get_included_files();
foreach ($files as $index => $file) {
    inotify_add_watch($init, $file, IN_MODIFY);
}

//监听
swoole_event_add($init, function ($fd) {
    $events =inotify_read($fd);
    var_dump($events);

});